package com.zhouzhou.fastjava.util;

import java.util.concurrent.TimeUnit;

public abstract class ThreadKit {

    private ThreadKit() {
    }

    public static void sleepSeconds(long timeout) {
        try {
            TimeUnit.SECONDS.sleep(timeout);
        } catch (Exception e) {
            // nothing to do
        }
    }

    public static void sleepMilliseconds(long timeout) {
        try {
            TimeUnit.MILLISECONDS.sleep(timeout);
        } catch (Exception e) {
            // nothing to do
        }
    }

}
